package cn.lczze.stock.mapper.base;

import cn.lczze.stock.model.base.StockBaseModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StockBaseMapper {

    List<StockBaseModel> selectStockBaseByCountry();

//    List<StockBaseModel> selectStockBaseByCountryAndActive(@Param("countryCode") String countryCode);
//
//    Integer deleteActiveTask(@Param("id")                String id);

    void insertStockBase(
            @Param("id")                String id,
            @Param("name")          String name,
            @Param("ticker")   String ticker,
            @Param("isActive")        Integer is_active,
            @Param("exchangeCode")             String exchange_code,
            @Param("countryCode")          String country_code,
            @Param("currencyCode") String currencyCode,
            @Param("remark") String remark
    );

    int updateModel(StockBaseModel stockBaseModel);
}
